{% load static %}
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户中心</title>
    <style>
        :root {
            --primary: #FF6B6B;
            --secondary: #FF8E8E;
            --accent: #FFD166;
        }

        body {
            background-image: url("{% static 'images/背景x.jpg' %}");
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Helvetica Neue', sans-serif;
            padding: 2rem;
        }

        body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(255,255,255,0.7);
            z-index: 0;
        }

        .profile-container {
            width: 100%;
            max-width: 600px;
            background: white;
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: 
                0 0 30px rgba(255,107,107,0.2),
                0 0 0 2px rgba(255,107,107,0.1),
                inset 0 0 20px rgba(255,107,107,0.1);
            position: relative;
            z-index: 1;
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        .profile-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, 
                var(--primary) 0%, 
                var(--secondary) 100%);
        }

        h1 {
            text-align: center;
            color: var(--primary);
            font-size: 2.4rem;
            margin: 0 0 2rem;
            position: relative;
        }

        .profile-content {
            display: grid;
            gap: 1.5rem;
        }

        .info-card {
            background: #fffafa;
            border: 2px solid #ffe5e5;
            border-radius: 12px;
            padding: 1.5rem;
            position: relative;
            transition: transform 0.3s ease;
        }

        .info-card:hover {
            transform: translateY(-3px);
        }

        .info-label {
            color: var(--primary);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .info-value {
            font-size: 1.1rem;
            color: #666;
        }

        .action-button {
            display: inline-block;
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, 
                var(--primary), 
                var(--secondary));
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            cursor: pointer;
            transition: transform 0.3s ease;
            text-align: center;
            text-decoration: none;
            margin-top: 1.5rem;
        }

        .action-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255,107,107,0.3);
        }

        @media (max-width: 480px) {
            .profile-container {
                margin: 1rem;
                padding: 1.5rem;
            }
            
            h1 {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
    <div class="profile-container">
        <h1>👋 欢迎回来, {{ user.username }}!</h1>
        <div class="profile-content">
            <div class="info-card">
                <div class="info-label">注册时间</div>
                <div class="info-value">2023年10月15日</div>
            </div>
            
            <div class="info-card">
                <div class="info-label">账户状态</div>
                <div class="info-value">💎 高级会员</div>
            </div>

            <div class="info-card">
                <div class="info-label">电子邮箱</div>
                <div class="info-value">user@example.com</div>
            </div>

            <a href="{% url 'page1' %}" class="action-button">
                🏠 返回首页
            </a>
        </div>
    </div>
</body>
</html>